import random
num=50
list = [random.randrange(0, 100, 1) for i in range(num)]
num1=int(input("请输入一个整数："))
print(list)

for i in range(num):
    for j in range(num):
        if i!=j and num1==list[i]+list[j]:
            print("该数组中有两数和与该整数相等，下标分别是：",i,j,"两个数分别是：",list[i],list[j])
            break
    else:
         continue
    break